package com.zsrt.java.day20161230.wrl.demo08;

public class Polygon {
	
	/**
	 * @return	圆的面积
	 */
	public double area(double r){
		return 3.14*r*r;
	}
	
	/**
	 * @return	三角形的面积
	 */
	public double area(double di,double gao){
		return di*gao/2;
	}
	
	/**
	 * @return	长方形的面积
	 */
	public double area(int width,double hight){
		return width*hight;
	}

}
